package com.ibm.spatiotemp.server.framework.processor.geoindexdb;

import org.apache.log4j.Logger;

import com.ibm.spatiotemp.server.datamodel.gpsdata.TSPointResultSet;
import com.ibm.spatiotemp.server.framework.processor.ProcessorFactory;
import com.ibm.spatiotemp.server.framework.processor.RawDataProcessor;
import com.ibm.spatiotemp.server.framework.request.Request;

/**
 * GeoIndexRawDataProcessor is a wrapper to inner_rawdataprocessor, to connect
 * to data source
 * 
 * @author xuxiaomin
 * 
 */
public class GeoIndexRawDataProcessor extends RawDataProcessor {
	public static Logger logger = Logger
			.getLogger(GeoIndexRawDataProcessor.class);

	private RawDataProcessor inner_rawdataprocessor;

	public GeoIndexRawDataProcessor(
			com.ibm.spatiotemp.server.datasources.DataSource src) {
		super(src);
		inner_rawdataprocessor = ProcessorFactory
				.getRawDataProcessorInstance(src);
	}

	@Override
	public TSPointResultSet handleRawDataQuery(Request request)
			throws Exception {
		return inner_rawdataprocessor.handleRawDataQuery(request);
	}

	@Override
	public String handleRawDataInsert(Request request) throws Exception {
		return inner_rawdataprocessor.handleRawDataInsert(request);
	}

}
